<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Thông Tin Khách Hàng</title>
<link href="styles.css" rel="stylesheet" type="text/css">
</head>
<body>

<jsp:useBean id="vidu" scope = "session" class = "controler.UserDetail" />
<%
vidu.laydshoadon(request, response);
vidu.doGet(request, response);
%>
<form class="tknc" id="tanghang3">
	<div class="login-header">
		<span>Thông Tin Khách Hàng</span>
			<a href="trangchu" class="close">x</a>
	</div>
	<div class="login-content">
	 <table class="detail_table1">
                                    <tr>
                	                    <td><strong>Tên khách hàng :</strong></td>
                                        <td>${listkh.get(0).getHoten()}</td> 
                                                        
                                    </tr>
                                    <tr>
                	                    <td><strong>Tên đăng nhập :</strong> </td>
                                        <td>${listkh.get(0).getTendangnhap()}</td>                
                                    </tr>
                                    <tr>
                	                    <td><strong>Địa chỉ :</strong> </td>
                                        <td>${listkh.get(0).getDiachi()}</td>                
                                    </tr>
                                    <tr>
                	                    <td><strong>Điện thoại :</strong></td>
                                        <td>${listkh.get(0).getDienthoai()}</td>                
                                    </tr>
                                    <tr>
                	                    <td><strong>Email :</strong></td>
                                        <td>${listkh.get(0).getEmail()}</td>                
                                    </tr>
                                 </table>
                                 <br>
               <table class="table-bordered">
               <thead>
                     <tr>
                	    <th>Mã hóa đơn</th>
         				<th>Tên sản phẩm</th>
        				<th>Số lượng</th>
         				<th>Đơn giá</th>
         				<th>Trạng thái</th>                              
                     </tr>
                     </thead>
                	 <tbody style="border: 1px solid #333;">
             	 <c:forEach items="${listhd}" var="listhd" >
                 <tr style="border: 1px solid #333;">
                     <td>${listhd.mahd}</td>
                     <td>${listhd.tensp}</td>
                     <td>${listhd.soluong}</td>
                     <td>${listhd.dongia}</td>
                     <td>${listhd.trangthai}</td>
                 </tr>
             	</c:forEach>
         		</tbody>       
                </table>

         </div>  				
</body>
</html>